CopyTo Method

Summary
Copies the elements of the ICollection to an System.Array, starting at a particular System.Array index.
Syntax
C#
VB
C++
public virtual void CopyTo( 
   KeyValuePair<TKey, TValue>[] array, 
   int arrayIndex 
) 
  
Public Overridable Sub CopyTo( _ 
   ByVal array() As KeyValuePair(Of TKey,TValue), _ 
   ByVal arrayIndex As Integer _ 
)  
public: 
virtual void CopyTo(  
   array<KeyValuePair<TKey^,TValue^>>^ array, 
   int arrayIndex 
)  

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from ICollection. The System.Array must have zero-based indexing.

arrayIndex
The zero-based index in array at which copying begins.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionarray is null.
System.ArgumentOutOfRangeExceptionarrayIndex is less than 0.
System.ArgumentExceptionarray is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array. -or- Type T cannot be cast automatically to the type of the destination array.
Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.